.UserMessage__row {
    position: relative;
    padding-top: 2.46154rem
}

.UserMessage__row--user {
    padding-left: 4.92308rem;
    max-width: 85%
}

@media (min-width: 1500px) {
    .UserMessage__row--user {
        padding-left:70px
    }
}

@media (min-width: 920px) {
    .UserMessage__row--user {
        max-width:70%
    }
}

@media (min-width: 1600px) {
    .UserMessage__row--user {
        max-width:55%
    }
}

.UserMessage__row--agent {
    padding-left: 15%;
    padding-right: 4.92308rem
}

@media (min-width: 920px) {
    .UserMessage__row--agent {
        padding-left:30%
    }
}

@media (min-width: 1600px) {
    .UserMessage__row--agent {
        padding-left:45%
    }
}

.UserMessage__row.text {
    padding-top: 0
}

.UserMessage__row .filler .avatar {
    position: absolute;
    left: 0;
    width: 40px;
    border-radius: 50%;
    margin-left: 16px
}

.UserMessage__content {
    position: relative
}

.UserMessage__content--user {
    text-align: left
}

.UserMessage__content--agent {
    text-align: right
}

.UserMessage__msg {
    position: relative;
    display: flex;
    flex-flow: column;
    border-radius: 8px;
    word-break: break-word;
    text-align: left
}

@media (min-width: 1500px) {
    .UserMessage__msg {
        font-size:14px;
        min-width: 100px
    }
}

.UserMessage__msg--user {
    align-items: flex-start
}

.UserMessage__msg--agent {
    align-items: flex-end
}

.UserMessage__msg--agent ::selection {
    background-color: #add5ff
}

.UserMessage__msg--agent ::-moz-selection {
    background-color: #add5ff
}

.UserMessage__avatar {
    position: absolute;
    bottom: 26px
}

.UserMessage__avatar--agent {
    right: -48px
}

.UserMessage__avatar--user {
    left: -48px
}

.SystemMessage {
    flex-flow: column
}

.SystemMessage,.SystemMessage__content {
    display: flex;
    justify-content: center;
    align-items: center
}

.SystemMessage__content {
    height: 26px;
    border-radius: 13px;
    padding: 0 1.23077rem;
    margin-top: 1.23077rem;
    color: #777;
    border: 1px solid #f5f5f6;
    font-size: .84615rem
}

.SystemMessage__content .component-rating {
    vertical-align: sub;
    margin-left: .61538rem
}

.SystemMessage__content-rating-comment {
    margin-left: .61538rem
}

.SystemMessage__content-time {
    font-size: .69231rem;
    vertical-align: baseline;
    padding-left: .61538rem;
    font-style: normal;
    color: #aaa
}

.SystemMessage__content b,.SystemMessage__content strong {
    color: #666
}

.SystemMessage__content--rating {
    padding: 2.46154rem;
    width: 300px;
    height: auto;
    background-color: #edf0f5
}

.SystemMessage .rating__smile {
    background-color: #fff;
    border-radius: 50%;
    max-width: 50px;
    max-height: 50px;
    margin-bottom: 1.23077rem
}

.SystemMessage__rating {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column
}

.SystemMessage__rating img {
    margin-bottom: 1.23077rem
}

.SystemMessage__rating-comment {
    font-size: 1rem;
    color: #43425d;
    margin-bottom: 1.23077rem;
    text-align: center;
    width: 250px
}

.SystemMessage__rating .rating {
    position: relative;
    top: -4px;
    width: 51px;
    height: 55px;
    font-size: 4.5rem;
    border-radius: 50%
}

.SystemMessage__rating .rating:before {
    position: absolute;
    top: 0;
    left: 0
}

.react-datepicker__input-container {
    display: block
}

.react-datepicker__close-icon {
    display: inline
}

.react-datepicker__close-icon:after {
    background-color: #bdbdbd
}

.HistoryCalendar:focus {
    outline: none
}

.HistoryCalendar--active .HistoryCalendar__arrow {
    transform: rotate(270deg)
}

.HistoryCalendar--active .HistoryCalendar__icon path,.HistoryCalendar--active .HistoryCalendar__icon rect {
    fill: #408fec
}

.HistoryCalendar--active .HistoryCalendar__filters {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1)
}

.HistoryCalendar__show {
    transition: color .2s ease;
    border-radius: 3px;
    cursor: pointer
}

.HistoryCalendar__show:focus {
    outline: none
}

.HistoryCalendar__icon {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    height: 16px;
    width: 16px;
    max-width: 16px
}

.HistoryCalendar__icon path,.HistoryCalendar__icon rect {
    transition: fill .2s ease;
    fill: #aaa
}

.HistoryCalendar__arrow-area {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 25px;
    height: 35px;
    cursor: pointer
}

.HistoryCalendar__arrow {
    transition: transform .4s ease .2s;
    color: #a1a8ac;
    font-size: .92308rem;
    transform: rotate(90deg)
}

.HistoryCalendar__filters {
    transition: opacity .2s ease,visibility .2s ease;
    will-change: opacity,visibility;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    max-height: calc(100vh - 200px);
    background-color: #fff;
    border: 1px solid #dadde0;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(60,60,60,.1);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 99
}

.HistoryCalendar__ranges-item {
    list-style: none;
    color: #494949;
    padding: .61538rem 1.23077rem;
    cursor: pointer
}

.HistoryCalendar__ranges-item:active,.HistoryCalendar__ranges-item:hover {
    background-color: #f7fbfd;
    color: #1774e2
}

.HistoryCalendar__ranges-item:first-child {
    padding: .92308rem 1.23077rem;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px
}

.HistoryCalendar__ranges-item:first-child,.HistoryCalendar__ranges-item:last-child {
    border-bottom: 1px solid #dadde0
}

.HistoryCalendar__ranges-wrap {
    padding: 1.23077rem
}

.HistoryCalendar__dates {
    display: flex;
    margin-left: -.61538rem;
    margin-right: -.61538rem;
    margin-bottom: 1.23077rem
}

.HistoryCalendar__date {
    width: 50%;
    padding: 0 .61538rem
}

.HistoryCalendar__date-title {
    color: #494949;
    font-weight: 600;
    margin-bottom: .61538rem
}

.HistoryCalendar__date-picker {
    position: relative;
    font-weight: 400
}

.HistoryCalendar__date-picker--right .react-datepicker__triangle {
    left: 100px
}

.HistoryCalendar__date-picker .react-datepicker__close-icon {
    position: absolute;
    top: 0;
    right: 3px;
    bottom: 0;
    margin: auto
}

.HistoryCalendar__date-picker .react-datepicker__close-icon:after {
    background-color: #fff;
    color: #494949
}

.HistoryCalendar__date-input {
    transition: border-color .2s ease;
    font-size: .84615rem;
    font-weight: 400;
    color: #494949;
    width: 100%;
    padding: .30769rem 1.84615rem .30769rem .61538rem;
    border: 1px solid #dadde0;
    border-radius: 3px
}

.HistoryCalendar__date-input:focus {
    outline: none;
    border-color: #408fec
}

.HistoryCalendar__date-icon {
    position: absolute;
    right: 7px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: 12px;
    max-width: 12px;
    cursor: pointer
}

.HistoryCalendar__date-icon path,.HistoryCalendar__date-icon rect {
    fill: #aaa
}

.HistoryCalendar__btn {
    width: 100%
}

.HistoryFilterItem {
    transition: background-color .2s ease;
    position: relative;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 85px;
    padding: .61538rem;
    margin-bottom: .30769rem;
    margin-right: 1.23077rem;
    border-radius: 4px;
    font-size: .84615rem
}

.HistoryFilterItem:active,.HistoryFilterItem:hover {
    background-color: #f5f5f6
}

.HistoryFilterItem--active {
    background-color: rgba(65,145,236,.12)
}

.HistoryFilterItem--active:active,.HistoryFilterItem--active:hover {
    background-color: rgba(18,94,181,.12)
}

.HistoryFilterItem__check {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #fff;
    width: 16px;
    height: 16px;
    border-radius: 50%
}

.HistoryFilterItem__check:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: 4px;
    height: 6px;
    border-right: 2px solid #408fec;
    border-bottom: 2px solid #408fec;
    transform: rotate(45deg)
}

.HistoryFilterItem__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: .30769rem;
    border-radius: 50%;
    overflow: hidden
}

.HistoryFilterItem__icon img {
    max-height: 32px
}

.HistoryFilterItem__icon svg {
    width: 16px;
    fill: #fff
}

.HistoryFilterItem__icon .rating__smile {
    display: flex;
    justify-content: center
}

.HistoryFilterItem__icon .rating {
    font-size: 2.46154rem
}

.HistoryFilterItem__icon--online {
    background-color: #7bdd3b
}

.HistoryFilterItem__icon--offline {
    background-color: #9897b5
}

.HistoryFilterItem__icon--missed {
    background-color: #ff5f5f
}

.HistoryFilterItem__title {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    font-weight: 500
}

